package cn.tuling.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author ${吴延昭}
 * @create 2021/5/2
 */
@RestController
@RequestMapping("/user")
@Api(tags = "用户管理")
public class UserController {

    @GetMapping("/{id}")
    @ApiOperation("根据ID查询用户信息")
    @ApiImplicitParam(name = "id",value = "用户ID", defaultValue = "1", required = true)
    public String getUser(@PathVariable Integer id) {
        return "Get a user.";
    }


    @PostMapping
    public String addUser() {
        return "Add a user.";
    }
}
